import javax.servlet.ServletException
import javax.servlet.http.HttpServlet
import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse

/**
 * Created with IntelliJ IDEA.
 * User: zjzhai
 * Date: 13-10-30
 * Time: 下午12:34
 * To change this template use File | Settings | File Templates.
 */
class GroovyHello extends HttpServlet{
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.getWriter().println('groovy servlet say hell')
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        doPost(req, resp)    //To change body of overridden methods use File | Settings | File Templates.
    }
}
